//
//  ApiConfig.h
//  Echo
//
//  Created by Cospring on 14/12/16.
//  Copyright (c) 2014年 sina. All rights reserved.
//

#ifndef Echo_ApiConfig_h
#define Echo_ApiConfig_h

#define KEY_CURRENT_USER    @"k_current_user"


#define DATA_API_BASE_URL   @"http://zjyume.sinaapp.com/"
#define DATA_API_GET        @"interface_page/get"
#define CATE_JAVA           @"1042015:computeTechLanguage_1000005"
#define CATE_PHP            @"1042015:computeTechLanguage_10000011"
#define CATE_OC             @"1042015:computeTechLanguage_1000009"
#define CATE_PYTHON         @"1042015:computeTechLanguage_10000017"
#define CATE_CPP            @"1042015:computeTechLanguage_1000004"
#define CATE_JAVASCRIPT     @"1042015:computeTechLanguage_10000023"
#define CATE_HADOOP         @"1042015:computeTechDealTool_1000001"
#define CATE_ASP            @"1042015:computeTechLanguage_10000027"
#define CATE_PERL           @"1042015:computeTechLanguage_10000022"
#define CATE_C              @"1042015:computeTechLanguage_1000000"
#define CATE_R              @"1042015:computeTechLanguage_10000041"
#define CATE_SWIFT          @"1042015:computeTechLanguage_10000012"
#define CATE_HTML5          @"1042015:computeTechFrontType_1000001"
#define CATE_CSHARP         @"1042015:computeTechLanguage_1000006"
#define CATE_RUBY           @"1042015:computeTechLanguage_10000016"
#define CATE_AJAX           @"1042015:computeTechFrontType_1000003"
#define CATE_SQL            @"1042015:computeTechLanguage_10000029"
#define CATE_ML             @"1042015:computeTechFieldType_10000015"
#define CATE_NLP            @"1042015:computeTechFieldType_10000016"



#define ROBOT_AUTH_STR       @"aWNld2F2ZXN0b25lQDE2My5jb206bWluc2hpODU4NTI5OTE0"

#define WEIBO_API_BASE_URL      @"https://api.weibo.com/"
//#define WEIBO_API_HOT_COMMENTS  @"2/comments/hot/timeline.json"
#define WEIBO_API_HOT_COMMENTS  @"2/comments/show.json"
#define WEIBO_API_GET_UID       @"2/account/get_uid.json"
#define WEIBO_API_USER_SHOW     @"2/users/show.json"
#define WEIBO_API_ADD_COMMENT   @"2/comments/create.json"

#define ERROR_CODE_TOKEN_TIMEOUT 21327
#define ERROR_CODE_AUTH_FAILED  24802
#define ERROR_CODE_WEIBO_NOT_EXIST 20101
#define ERROR_CODE_NEED_LOGIN 10001
#define ERROR_CODE_ECHO_API_FAILED 10002

#define HOT_COMMENTS_FETCH_NUM  6


//Echo api
#define ECHO_API_BASE_URL   @"http://123.57.76.219/"
#define ECHO_API_DOMAIN     @"api.echo.com"
#define ECHO_API_PARAM_KEY  @"JIled2123@"

#define ECHO_API_COLLECTION_LIST    @"collection/list"
#define ECHO_API_COLLECTION_ADD     @"collection/add"
#define ECHO_API_COLLECTION_DEL     @"collection/del"
#define ECHO_API_COLLECTION_CHECK   @"collection/check"

#define ECHO_API_DEFAULT_CURSOR     @"-1"

#define PIC_URL_BASE        @"http://ww%@.sinaimg.cn/%@/%@.jpg"
#define DEFAULT_PIC_TYPE    @"bmiddle"

#define kAppKey             @"1947132752"
#define kRedirectURI        @"https://api.weibo.com/oauth2/default.html"
#define TWEETNum            10



#endif
